package com.yao.service.impl;

import com.yao.mapper.UserCodeMapper;
import com.yao.service.IUserCodeService;
import com.yao.service.pojo.UserCode;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Copyright (C), 2022-2022, 姚兵
 * Author: 32210
 * Date: 2022/11/3 12:47
 * FileName: UserCodeServiceImpl
 * Description:
 */

@Service
@Slf4j
public class UserCodeServiceImpl implements IUserCodeService {

    @Autowired
    UserCodeMapper userCodeMapper;
    @Override
    public UserCode getByCode(String code) {
        log.info("getByCode:code:{}",code);
        return userCodeMapper.getByCode(code);
    }
}
